#include "ros/ros.h"
#include "learning_communication/AddTwoInts.h"
int main(int argc,char ** argv){
    ros::init(argc,argv,"add_two_ints_client");
    ros::NodeHandle n;

    ros::service::waitForService("add_two_ints");
    ros::ServiceClient client = n.serviceClient<learning_communication::AddTwoInts>("add_two_ints");
    learning_communication::AddTwoInts srv;
    srv.request.a = atoll(argv[1]);
    srv.request.b = atoll(argv[2]);
    if(client.call(srv)){
        ROS_INFO("Call sucesssfully [value:%ld]",srv.response.sum);
    }
    return 0;
}
